﻿using AutoMapper;

namespace TenantManagement;

public class TenantManagementApplicationAutoMapperProfile : Profile
{
    public TenantManagementApplicationAutoMapperProfile()
    {
        CreateMap<TenantCreateParameter, Tenant>();
        CreateMap<TenantUpdateParameter, Tenant>();
        CreateMap<Tenant, TenantResult>().MapExtraProperties();

        CreateMap<TenantConnStringCreateParameter, TenantConnString>();
        CreateMap<TenantConnStringUpdateParameter, TenantConnString>();
        CreateMap<TenantConnString, TenantConnStringResult>();

        CreateMap<TenantDomainCreateParameter, TenantDomain>();
        CreateMap<TenantDomainUpdateParameter, TenantDomain>();
        CreateMap<TenantDomain, TenantDomainResult>();
    }
}
